<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
    <title>店铺分类管理</title>
    <script>
        $("#form_submit").click(function(){
            //                alert("提交动作");
            $("#product_form").submit();
        });
    </script>
</head>
<body>
<div class="navigation">
    <div class="crumbs ">
        <i class="tm-iconfont icon-info"></i>
        <a href="#">卖家中心</a><span>&gt;</span><a href="#200">店铺管理</a><span>&gt;</span>微信公众号绑定
    </div>
    <div class="help">
        <a href="#" target="_blank">卖家交易学习专区</a>
    </div>
</div>
<c:choose>
<c:when test="${result==1}">
    设置成功
</c:when>
<c:when test="${wxShopWeixinConfig==1}">
    你已经绑定微信公众号
</c:when>
<c:otherwise>
<form:form modelAttribute="WxShopWeixinConfigModel" action="${ctx}/wx/public_number" method="post" id="product_form">
<div class="line-all">
    <div class="re_content p-tb20">
        <div class="u_tableform p-lr20">
            <div class="item">
                <label class="label w120">公众号名称：<span>*</span></label>
                <div class="cont_txt">
                    <form:input path="name" type="text" cssClass="text w240"  placeholder="公众号名称:"  ></form:input>
                    <form:errors path="name" type="text" cssClass="text w240" ></form:errors>
                    <%--<input type="text" class="text w240" />--%>
                </div>
            </div>
            <div class="item">
                <label class="label w120">公众号原始ID：<span>*</span></label>
                <div class="cont_txt">
                    <form:input path="publicNumberId" type="text" cssClass="text w240"  placeholder="公众号原始ID:"  ></form:input>
                    <form:errors path="publicNumberId" type="text" cssClass="text w240" ></form:errors>
                    <%--<input type="text" class="text w240" />--%>
                    <span class="p-l10 c-999999"><em class="c-FF0000">请认真填写，错了不能修改。</em>比喻：gh_3245hjf<a class="u1 b-3399ff c-FFFFFF p-lr10 m-l10" href="#">不懂就点我</a></span>
                </div>
            </div>
            <div class="item">
                <label class="label w120">微信号：<span>*</span></label>
                <div class="cont_txt">
                    <form:input path="weixinNumber" type="text" cssClass="text w240"  placeholder="微信号:"  ></form:input>
                    <form:errors path="weixinNumber" type="text" cssClass="text w240" ></form:errors>
                    <%--<input type="text" class="text w240" />--%>
                    <span class="p-l10 c-999999">比喻：lentu124</span>
                </div>
            </div>
            <div class="item">
                <label class="label w120">AppID(公众号)：</label>
                <div class="cont_txt">
                    <form:input path="publicNumber" type="text" cssClass="text w240"  placeholder="AppID(公众号):"  ></form:input>
                    <form:errors path="publicNumber" type="text" cssClass="text w240" ></form:errors>
                    <%--<input type="text" class="text w240" />--%>
                    <span class="p-l10 c-999999">用于自定义菜单等高级功能，可以不填</span>
                </div>
            </div>
            <div class="item">
                <label class="label w120">AppSecret：</label>
                <div class="cont_txt">
                    <form:input path="appSecret" type="text" cssClass="text w240"  placeholder="AppSecret:"  ></form:input>
                    <form:errors path="appSecret" type="text" cssClass="text w240" ></form:errors>
                    <%--<input type="text" class="text w240" />?--%>
                    <span class="p-l10 c-999999">用于自定义菜单等高级功能，可以不填</span>
                </div>
            </div>
            <div class="item">
                <label class="label w120">微信号类型：</label>
                <div class="cont_txt">
                    <form:select path="type" class="text w125 m-r10">
                        <form:option value="1">--订阅号--</form:option>
                        <form:option value="2">--其它号--</form:option>
                    </form:select>
                    <form:errors path="type" type="text" cssClass="text w125 m-r10" ></form:errors>
                    <%--<select class="text w125 m-r10">--%>
                        <%--<option value="订阅号">订阅号</option>--%>
                        <%--<option value="其它号">其它号</option>--%>
                    <%--</select>--%>
                    <span class="p-l10 c-999999">认证服务号是指每年向微信官方交300元认证费的公众号</span>
                </div>
            </div>
            <br><br>
        </div>
    </div>
</div>
<div class="tac p-t40">
    <button id="form_submit" class="i_btn u2 p-lr50">保存店铺设置</button>
    <div style="padding-bottom:100px; height:10px;"></div>
</div>
</form:form>
</c:otherwise>
</c:choose>
</body>